#include "MessagerApp.h"

int WINAPI WinMain(
  HINSTANCE hInstance,      // handle to current instance
  HINSTANCE hPrevInstance,  // handle to previous instance
  LPSTR lpCmdLine,          // command line
  int nCmdShow              // show state
)
{
	HWND hWnd;
	MSG msg;
	CGameApp GameApp;
	if(!GameApp.CreateWnd("",hInstance,hPrevInstance,nCmdShow))
	{
		return FALSE;
	}

	hWnd=GameApp.GetHWnd();

	GetMessage(&msg,NULL,0,0);

	//Message loop is no longer needed.

	while(1)
	{
		Sleep(1000);//this window out, the dll hooked out. so we must stay.
	}

	UnregisterClass("WndCls",hInstance);
	return true;
}